package com.ly.video.api.user.entity;

import java.util.Date;
import java.util.Objects;

public class WithdrawalEntity {
    private Integer id;
    private Integer uid;
    private Double amount;
    private Integer state;
    private String reason;
    private Date createTime;

    public WithdrawalEntity() {
    }

    public WithdrawalEntity(Integer id, Integer uid, Double amount, Integer state, String reason, Date createTime) {
        this.id = id;
        this.uid = uid;
        this.amount = amount;
        this.state = state;
        this.reason = reason;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof WithdrawalEntity)) return false;
        WithdrawalEntity that = (WithdrawalEntity) o;
        return Objects.equals(getId(), that.getId()) && Objects.equals(getUid(), that.getUid()) && Objects.equals(getAmount(), that.getAmount()) && Objects.equals(getState(), that.getState()) && Objects.equals(getReason(), that.getReason()) && Objects.equals(getCreateTime(), that.getCreateTime());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getUid(), getAmount(), getState(), getReason(), getCreateTime());
    }

    @Override
    public String toString() {
        return "WithdrawalEntity{" +
                "id=" + id +
                ", uid=" + uid +
                ", amount=" + amount +
                ", state=" + state +
                ", reason='" + reason + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
